package com.fzj.example.design.decorator;

/**
* @Description 具体的装饰
* @Author  fanzj
* @Date   2020/5/10 11:50 上午
* @Param
* @Return
* @Exception
*
*/
public class ConcreteDecorator extends Decorator{

    public ConcreteDecorator(Component component) {
        super(component);
    }

    @Override
    public void create() {
        //执行父类
        super.create();
        //执行业务-扩展
        addBussinsee();
    }

    private void addBussinsee() {
        System.out.println("add business");
    }
}
